import {
	testPost,
	testGet
} from '@/api/base.js';
export default {
	methods: {
		fnTestPost(params) {
			return new Promise((resolve, reject) => {
				testPost(params).then(res => {
					resolve(res)
				}).catch(err => {
					reject(err)
				})
			})
		},
		fnTestGet(params) {
			return new Promise((resolve, reject) => {
				testGet(params).then(res => {
					resolve(res)
				}).catch(err => {
					reject(err)
				})
			})
		},
		fnTestList(params) {
			return new Promise((resolve, reject) => {
				testGet(params).then(res => {
					resolve(res)
				}).catch(err => {
					reject(err)
				})
			})
		},
	}
}